<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"       xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        <ui:define name="content">
             
                <p:panel header="#{bundle.CreateItemFourTitle}" >
                    <p:panelGrid columns="2">
                        <h:outputLabel value="Leader" for="leader" />
                        <p:selectBooleanButton value="#{itemFourController.selected.leader}" onLabel="Leader" offLabel="Not Leader" />                   
                        <h:outputLabel value="#{bundle.CreateItemFourLabel_item}" for="item" />
                        <p:selectOneMenu id="item" value="#{itemFourController.selected.item}" title="#{bundle.CreateItemFourTitle_item}" required="true" requiredMessage="#{bundle.CreateItemFourRequiredMessage_item}">
                            <f:selectItems value="#{itemController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.CreateItemFourLabel_fournisseur}" for="fournisseur" />
                        <p:selectOneMenu id="fournisseur" value="#{itemFourController.selected.fournisseur}" title="#{bundle.CreateItemFourTitle_fournisseur}" required="true" requiredMessage="#{bundle.CreateItemFourRequiredMessage_fournisseur}">
                            <f:selectItems value="#{fournisseurController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <br />
                    <h:commandLink action="#{itemFourController.create}" value="#{bundle.CreateItemFourSaveLink}" />
                    <br />
                    <br />
                    <h:commandLink action="#{itemFourController.prepareList}" value="#{bundle.CreateItemFourShowAllLink}" immediate="true"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.CreateItemFourIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
